package com.feng.chat.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Data;

/**
 * <p>
 * 用户聊天记录_代码块消息表
 * </p>
 *
 * @author dyf
 * @since 2022-05-31
 */

@Data
@TableName("talk_records_code")
public class TalkRecordsCode implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 代码块消息ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 消息记录ID
     */
    private Integer recordId;

    /**
     * 上传文件的用户ID
     */
    private Integer userId;

    /**
     * 代码片段类型(如：php,java,python)
     */
    private String lang;

    /**
     * 代码片段内容
     */
    private String code;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;


}
